home *** CD-ROM | disk | FTP | other *** search
- DIM regs%(15)
- ' ## INLINE:
- ' $0000: 53 80 72 0f 47 e8 00 10 76 00 e3 e3 d7 43 e3 e3
- ' $0010: d7 43 e3 e3 d7 43 e3 e3 d7 43 e3 e3 d7 43 e3 e3
- ' $0020: d7 43 e3 e3 d7 43 e3 e3 d7 43 34 f1 34 00 14 f1
- ' $0030: 34 03 51 c9 ff d0 41 e8 00 10 53 80 6a c4 4e 75
- ' 64 Bytes.
- INLINE asm_rout%,64
- FILESELECT DIR$(0)+"\*.GFX","",fname$
- IF fname$<>""
- RESERVE 10000
- OPEN "i",#1,fname$
- res$=INPUT$(38,#1)
- pal256$=INPUT$(1024,#1)
- pal16$=INPUT$(32,#1)
- IF BTST(CVI(MID$(res$,3,2)),4)
- w#=(CVI(MID$(res$,39-6,2))+CVI(MID$(res$,39-4,2)))*2
- h#=(CVI(MID$(res$,25,2))-CVI(MID$(res$,23,2)))/2
- IF BTST(CVI(MID$(res$,31,2)),0)
- h#=h#/2
- ENDIF
- IF BTST(CVI(MID$(res$,31,2)),1)
- h#=h#*2
- ENDIF
- BGET #1,HIMEM,LOF(#1)-38-1024-32
- ziel%=HIMEM+LOF(#1)-38-1024-32
- regs%(0)=w#*h#/16
- regs%(8)=HIMEM
- regs%(9)=V:pal256$
- regs%(10)=ziel%
- RCALL asm_rout%,regs%()
- OPEN "o",#2,LEFT$(fname$,RINSTR(fname$,"."))+"RAW"
- PRINT #2,w#;" ";h#;CHR$(10);
- BPUT #2,ziel%,w#*h#*3
- CLOSE #2
- ELSE
- CLS
- PRINT "Sorry!"
- PRINT "Ich konvertiere nur 256-Farben-Bilder!"
- ~INP(2)
- ENDIF
- CLOSE #1
- ENDIF
-